

package example.serialization;


import javax.annotation.Nonnull;

/**
 * An extension of {@link EmployeeDTOSerializer} where the
 * {@link #getCompactClass()} returns a different class, but the
 * {@link #getTypeName()} returns the same type name.
 */
public class SameTypeNameEmployeeDTOSerializer extends EmployeeDTOSerializer {
    @Nonnull
    @Override
    public Class getCompactClass() {
        return EmployerDTO.class;
    }
}
